{include file="../include.tpl"}
<!-- production -->
<script type="text/javascript" src="js/plupload.full.min.js"></script>
<!-- debug 
<script type="text/javascript" src="../js/moxie.js"></script>
<script type="text/javascript" src="../js/plupload.dev.js"></script>
-->
<script type="text/javascript" src="js/group.js"></script>
<body>
{literal}
<style>
 
#ulDir{list-style:none; padding:0; margin:0;width:97%;}
#ulDir li{height:30px; width:190px; cursor:pointer; line-height:30px; padding-left:4px;}
#ulDir li input{display:none;}

#ulList{list-style:none; padding:0; margin:0;width:100%; padding-left:13px; height:500px;}
#ulList li{float:left;width:130px;height:140px;position: relative;}
#ulList li img{width:100px;height:90px; cursor:pointer;}
#ulList li div{position:absolute; top:100px;left:5px;}
#ulList li input{position:absolute; top:70px;left:0px;}
#filelist{list-style:none; margin:0; padding:0;border-top:1px solid #CCC;padding:10px 0px 10px 0px; display:none;}
#filelist div{height:10px; line-height:10px;}
#filelist li{height:45px;border-bottom: 1px solid #CCC; padding-top:5px;}
#tblDetail{display:none;}
#toolbar button{margin-left:10px;}
#tdShowImg p{color:#000}
.mnuRef{ position:absolute;z-index:100; left:210px; background-color:#ffffff; border:1px solid #BFBFBF;width:270px; height:100px; overflow:auto; display:none;}
.mnuRef ul{list-style:none; padding:0; margin:0;}
.mnuRef ul li{width:98%; height:30px; line-height:30px; text-align:left; padding-left:2px;}
.mnuRef ul li:hover{background-color:#EEE; cursor:pointer;} 
</style>
<script>
$(function(){
	 
});
function showSubjectTips()
{
	$("#idSubjectTips").show();
	$.get("?act=filegroup&op=getTips",function(d){
		var j = eval("("+d+")");
		$("#ulSubjectTips").html("");
		if(j.length==0)
		{
			$("#ulSubjectTips").html("<li>没有可设置的专题</li>");
		}
		else
		{
		for(i=0;i<j.length;i++)
		{
			var x = j[i];
			if(x.length>20)
			{
				x = x.substring(0,20)+"..";
			}
			$("#ulSubjectTips").append("<li title='"+j[i]+"'>"+x+"</li>");
		}
		}
		$("#idSubjectTips").find("li").each(function(){
		$(this).click(function(){
		 
		 	$("#txtGroupName").val($(this).html());
  		 	$("#idSubjectTips").hide();
			});
		});
	
});
}
function showSubjectDetail()
{
	window.location.href="index.php?act=upload&showEdit="+gId+"&isSub=1";
}
</script>
{/literal}
<iframe name="iframeSubmit" id="iframeSubmit" src="about:blank" style="display:none;"></iframe>
<div id="dialog-confirm" title="正在处理中..." style="display:none;">
      <table height="80" width="100%">
       <tr>
         <td style="width:100px;height:30px;" id="msg">正在处理...请勿关闭</td> </tr>
       </table>
</div>
 
<div id="dialog-form" title="增加主题链接" deftitle="增加主题链接" style="display:none;">
	<form name="formGame" id="formGame" method="post" action="?act={$act}&op=ajaxSaveType" enctype="multipart/form-data" target="iframeSubmit">
 
        <table height="280px" width="100%">
        
<tr><td height="1" valign="top">
<ul id="filelist">
</ul>
</td></tr>
<tr><td>
<table cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr><td align="center" valign="middle"><div style="width:200px;height:200px; background-color:#CCC"><button id="pickfiles" style="margin-top:80px;">修改主题封面图片</button><img id="imgUpload" src="about:blank" style="display:none; margin-top:-100px;" width="200" height="200"/></div></td></tr>
<tr><td align="center" height="50">
修改主题：<input type="text" id="txtGroupName" data="" style="width:300px;"/>
	<div id="idSubjectTips" class="mnuRef">
    <ul id="ulSubjectTips">
 
    </ul>
    </div>
</td></tr>
<tr><td align="center" height="50"><div id="btnSubjectModify1" style="cursor: pointer;" onclick="showSubjectDetail();">修改主题分类</div></td></tr>
</table>
</td></tr>
  <tr><td><pre id="console"></pre></td></tr>
 
       </table>
 
	<input type="hidden" id="tid" name="tid" value="{$curTypeId}"/>
	<input type="hidden" id="editId" name="editId" value=""/>
	</form>
</div>
<div style="display:none" id="divTempFileHtml">
<table width="100%" class="tblFile" id="TBLID"><tr><td width="55" rowspan="2" align="right" style="padding-right:10px;display:none;"><img src="images/ico/tifs.png" height="30"/></td><td width="300">NAME</td><td >SIZE</td><td  rowspan="2" width="55" align="center"><img src="images/ok.gif" id="imgOk" style="display:none;"/></td></tr><tr><td colspan="2"><div id="progressbar"></div></td></tr></table>
</div>
{include file='header.tpl'}
<table id="tblData" width="1000" border="0" style="margin:auto;" cellpadding="0" cellspacing="0">
  
  <tr>
    
    <td valign="top"><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="13" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top"><table width="100%" height="600" border="0" align="center" cellpadding="0" cellspacing="0">
 
          <tr>

            <td>
            <table width="100%" height="100%">
            <tr>
             <td>
 
	
	<table id="users" width="100%" height="100%" style="border:1px #CCC solid;">
		<tbody>
        <tr>
        <td>&nbsp;&nbsp;&nbsp;<select id="selSt">
 <!--
        <option value="3">未提交审核</option>
        
        <option value="4">待提交审批</option>
        <option value="5">已提交审批</option>
        -->
        <option value="1">已发布</option>
        <option value="2">已下架</option>
        </select>&nbsp;&nbsp;&nbsp;总计：<span id="total">0</span>&nbsp;&nbsp;&nbsp;<input type="checkbox" id="chkSelAll"/>全选</td>
        <td style="text-align:right; padding-right:10px; width:390px" id="toolbar"><button id="createUser" style="display:none;">1.增加主题</button><button id="btnSetDir" style="display:none;">批量归目录</button><button id="btnRemoveDir" style="display:none;">批量移除文件</button><button id="btnModify" style="display:none;">批量修改</button><button id="btnAddApply">2.加入申请</button><button id="btnUnPost" >3.批量下架</button><button id="btnDelete" style="display:none;">批量删除</button></td></tr>
         <tr>
              <td align="left" valign="top" colspan="2" height="500">
              <ul id="ulList">

              </ul>
              </td>
         </tr>
         <tr><td colspan="3"><div id="divPageNav" style="position:inherit;width:100%;">{$pageNav}</div></td></tr>
		</tbody>
	</table>
 
            </td>
            </tr>
            </table>
 </td>
          </tr>
        </table>
          </td>
      </tr>
    </table></td>
     
  </tr>
   <tr>
        <td  colspan="3" height="30" valign="middle">
     
    </td>
  </tr>
  <tr>
    <td  valign="middle">
     {include file='footer.tpl'} 
    </td>
  </tr>
</table>

<table id="tblDetail" width="1000" style="margin:auto;" border="0" cellpadding="0" cellspacing="0">
   
  <tr>
    
    <td valign="top" ><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
      
      <tr>
        <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
 
          <tr>
            <td>
            <div id="users-contain" class="ui-widget" style="width:100%;">
	<form id="form" action="?act={$act}&op=saveInfo" method="post" target="iframeSubmit">
	<table id="users" class="ui-widget ui-widget-content">
		<tbody>
         <tr>
              <td align="left" valign="top" width="600">
                 <table width="100%">
                 <tr><td id="tdShowImg" colspan="2" height="450" align="center" style="text-align:center; font-size:20px; color:#ffffff; font-weight:bold;" valign="middle"><button id="btnUploadPrevPic">上传预览图片</button><p>1111111</p>
                 </td></tr>
                 <tr><td width="270">文件编号：<span id="idid">{$f.fid}</span></td><td>上传者：<span id="uploader" style="margin-left:13px;"></span></td></tr>
                 <tr><td>文件名称：<input id="mark" type="text" name="dbmark" value="{$f.mark}" size="30" style="margin-left:1px;width:200px;"/></td>
                 <td>作者：<input id="author" type="text" name="dbauthor" value="{$f.author}" size="30" style="margin-left:25px;width:200px;"/></td>
                 </tr>
<tr><td>年份：<select id="year" name="dbyear" sel="0" style="margin-left:25px;width:206px;"></select></td><td>有效期限：<input type="text" name="dbavaliDate" id="avaliDate" value="{$f.avaliDate}" style="margin-left:2px;width:200px;"/></td></tr>
                 <tr>
                <td valign="top">
                <div style="width:61px; float:left">出处说明：</div>
<textarea  id="instro" name="dbinstro" style="width:200px;"></textarea>
               </td><td><div style="width:61px; float:left">使用限制：</div><textarea  name="dblimitUse" id="limitUse" style="width:200px;"></textarea></td></tr>
  
                 
                 </table> 
              </td>
              <td align="left" valign="top">
 				<table width="100%" class="tblright">
                 <tr><td><button id="btnDetailSave" style="height:40px;width:333px; font-size:15px;">保存信息</button></td></tr>
                 <tr><td><button id="btnDetailPost" style="height:40px;width:300px;font-size:15px; display:none;">保存并发布</button></td></tr>
                 <tr><td><button id="btnDetailUnPost" style="height:40px;width:300px;font-size:15px;">下架</button></td></tr>
                 <tr><td align="left" valign="top" style="padding:0; border:none;">
                 <table width="100%" cellpadding="0" cellspacing="0" style="margin:0;">
                 <tr><td style="background-color:#EEE">添加目录</td><td style="background-color:#EEE"><button id="btnShowDirForm" style="float:right;">添加</button></td></tr>
                 <tr><td colspan="2" style="padding:0; border:none;">
                 <br/>
                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#00F" id="dirCars">—品牌车型&nbsp;(0)</span>
                 <table id="tblSelCar"></table>
                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#00F" id="dirTypes">—内容类型&nbsp;(0)</span>
                 <table id="tblSelType"></table>
                 </td></tr>
 
                 </table>
                 </td></tr>
                 <tr><td style="padding:0; border:none;">
                 <table width="100%" cellpadding="0" cellspacing="0" style="margin-top:10px; margin-bottom:0">
                 <tr><td style="background-color:#EEE">设置关键词</td></tr>
                 <tr><td>
                 <textarea id="keywords" name="dbkeywords" rows="3" style="width:325px;">{$f.keywords}</textarea>
                 </td></tr>
                 
                 </table>
                 </td></tr>
                 <tr><td style="padding:0; border:none;"><table width="100%" cellpadding="0" cellspacing="0" style="margin-top:10px; margin-bottom:0">
                 <tr><td style="background-color:#EEE">设置专题</td></tr>
                 <tr><td>
                 <textarea id="zhuanTi" name="dbzhuanTi" rows="3" style="width:325px;">{$f.zhuanTi}</textarea>
                 </td></tr>
                 
                 </table></td></tr>
				 <input type="hidden" id="pdid" name="pdid" value="0"/>
                 <input type="hidden" id="id" name="id" value="{$f.id}"/>
                 <input type="hidden" id="optype" name="optype" value=""/>
                 </table> 
              </td>
         </tr>
		</tbody>
	</table>
    </form>
    <input type="hidden" id="act" value="{$act}"/>
</div>
 </td>
          </tr>
        </table>
          </td>
      </tr>
    </table></td>
    
  </tr>
     <tr>
        <td  height="30" valign="middle">
     
    </td>
  </tr>  <tr>
    <td valign="middle">
  
    </td>
  </tr>
</table>
</body>
 
